package com.ruoyi.web.controller.lingshui.monitor;

import java.util.ArrayList;
import java.util.List;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.supervise.domain.CompletionRecordTable;

/**
 * @ClassName: MonitorController
 * @Description: 工程质量安全监督登记系统接口（目前该模块在19年7月份已经取消，可能会删除该接口）
 * @Author wtj
 * @DateTime 2020-9-18 11:17:36
 */
@Controller
@RequestMapping("/monitor")
public class MonitorController extends BaseController  {
	private String prefix = "lingshui/monitor";

	
	/**
	 * @Title: accept
	 * @Description: 跳转到监督登记页面
	 * @Author wtj
	 * @DateTime 2020-9-18 11:19:14
	 * @return
	 */
	@RequiresPermissions("monitor:register:view")
	@GetMapping("/register")
	public String register()
	{
	    return prefix + "/monitor";
	}
	
	/**
	 * @Title: accept
	 * @Description: 跳转到监督受理页面
	 * @Author wtj
	 * @DateTime 2020-9-18 11:19:54
	 * @return
	 */
	@RequiresPermissions("monitor:accept:view")
	@GetMapping("/accept")
	public String accept()
	{
	    return prefix + "/monitor";
	}
	
	/**
	 * @Title: distribution
	 * @Description: 跳转到监督任务分配页面
	 * @Author wtj
	 * @DateTime 2020-9-18 11:20:25
	 * @return
	 */
	@RequiresPermissions("monitor:distribution:view")
	@GetMapping("/distribution")
	public String distribution()
	{
	    return prefix + "/monitor";
	}
	
	/**
	 * @Title: record
	 * @Description: 跳转到监督登记记录管理页面
	 * @Author wtj
	 * @DateTime 2020-9-18 11:21:04
	 * @return
	 */
	@RequiresPermissions("monitor:record:view")
	@GetMapping("/record")
	public String record()
	{
	    return prefix + "/monitor";
	}
	
	/**
	 * @Title: personnel
	 * @Description: 跳转到监督员管理页面
	 * @Author wtj
	 * @DateTime 2020-9-18 11:21:35
	 * @return
	 */
	@RequiresPermissions("monitor:personnel:view")
	@GetMapping("/personnel")
	public String personnel()
	{
	    return prefix + "/monitorPerson";
	}
	
	/**
	 * @Title: list
	 * @Description: 获取页面数据
	 * @Author wtj
	 * @DateTime 2020-9-18 11:23:01
	 * @return
	 */
	@RequiresPermissions("monitor:monitor:list")
    @PostMapping("/list")
    @ResponseBody
    public TableDataInfo list()
    {
		List<CompletionRecordTable> completionRecordTableList=new ArrayList<CompletionRecordTable>();
        return getDataTable(completionRecordTableList);
    }
}
